package request

type AddProductReq struct {
	Title string `form:"title" json:"title" binding:"required"`
	Price uint   `form:"price" json:"price" binding:"required"`
	Stock uint   `form:"stock" json:"stock" binding:"required"`
}
type ProductListReq struct {
	Page uint `form:"page" json:"page"`
	Size uint `form:"size" json:"size"`
}

type GroupBuyReq struct {
	UserId    uint   `form:"user_id" json:"user_id" binding:"required"`
	Username  string `form:"username" json:"username" binding:"required"`
	Phone     string `form:"phone" json:"phone" binding:"required"`
	AddressId uint   `form:"address_id" json:"addressId" binding:"required"`
	ProductId uint   `form:"product_id" json:"product_id" binding:"required"`
	Num       uint   `form:"num" json:"num" binding:"required"`
}
type GroupBuyInfoReq struct {
	GroupBuyId uint `json:"group_buy_id" json:"group_buy_id" binding:"required"`
}
